<?

class osDlink extends osSwitch {
	public $id = 'dlink';
	public $mibs = array(
		//'SNMPv2-SMI.mib',
		//'SNMPv2-TC.mib',
		//'SW36XXPRIMGMT-MIB.mib',
		//'L2mgmtDGS3650.mib',
		//'IF-MIB'

	);

	public function checkDescription($sysDescr='') {
		if (preg_match('/^DGS-([0-9]+)/',$sysDescr)) {return $this->type; }
		if (preg_match('/^DWS-([0-9]+)/',$sysDescr)) {return $this->type; }
	}
	public function getDescription() {
		$sysDescr = $this->device->snmp->get('SNMPv2-MIB','sysDescr.0');
		return $sysDescr;	
	}
	
	
	
	public function getType() {
		$sysDescr = $this->device->snmp->get('SNMPv2-MIB','sysDescr.0');
		return $this->device->os_type;		
	}
}


?>